package com.rj.bd.manager.dao;


import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import com.rj.bd.manager.entity.Manager;





@Repository("ManagerMapper")
public interface ManagerMapper {

	@Select("select * from manager where mname = #{arg0}  and mpassword=#{arg1}")
	Manager login(String mname, String mpassword);

    @Update("update  manager set mtoken =#{arg0} where mid=#{arg1}")
	void update(String mtoken, int mid);
    
}
